import service from '@/utils/request';

export default null;
export const getDateList = (params?: any) => {
  return service.request({
    url: '/patient/SysPatientDietController/queryPatientDietDate',
    method: 'get',
    params,
  });
};
// 获取列表
export const getDataList = (params?: any) => {
  return service.request({
    url: '/patient/SysPatientDietController/selectPatientList',
    method: 'get',
    params,
  });
};
// 新增
export const addData = (data?: any) => {
  return service.request({
    url: '/patient/SysPatientDietController/insertPatientDiet',
    method: 'post',
    data,
  });
};
// 删除
export const delById = (id: any) => {
  return service.request({
    url: `/patient/SysPatientDietController/deletePatientDietById`,
    method: 'post',
    params: {
      id,
    },
  });
};
// 批量删除
export const delByIds = (ids: any) => {
  return service.request({
    url: `/patient/SysPatientDietController/deletePatientDietByIds`,
    method: 'post',
    params: {
      ids,
    },
  });
};
//   修改
export const editData = (data: any) => {
  return service.request({
    url: `/patient/SysPatientDietController/updatePatientDiet`,
    method: 'POST',
    data,
  });
};
